<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="X-UA-Compatible" content="ie=edge">
	<title>授权列表</title>
	<style>
		*{margin: 0;padding: 0;font-size:15px}
		.container_title{display: flex;justify-content: space-between;padding: 8px 20px;}
		.container_title button{padding: 0 10px}
		.container_list li{border-top: 8px solid #eeeeee;padding: 0 15px;}
		.li_top{padding:5px 0;border-bottom: solid 1px #eeeeee}
		.li_top span{margin-right: 20px;}
		.li_state{display: flex;justify-content: space-between;align-items: center;margin:10px 0;}
		.li_state p{color: #999}
		.li_state button{background: #0053A3;color: #ffffff;border:none;padding:3px 10px;border-radius:3px}
		.green{color: #55CC00}
		.red{color: red}
	</style>
	<script type="text/javascript" src="/Public/static/jquery.min.js"></script>
</head>
<body>
	<div class="a_container">
		<div class="container_title">
			<p>接口列表</p>
			<button>刷新</button>
		</div>
		<ul class="container_list">
			<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
					<div class="li_top">
						<span><?php echo ($vo["id"]); ?></span>
						<font><?php echo ($vo["name"]); ?></font>
					</div>
					<div class="li_state">
						<div class="li_left">


						</div>
						<button id="btn-<?php echo ($vo["id"]); ?>" data-id="<?php echo ($vo["id"]); ?>" data-url="<?php echo ($vo["url"]); ?>" onclick="shouquan('<?php echo ($vo["url"]); ?>')">点击授权</button>
					</div>
				</li><?php endforeach; endif; else: echo "" ;endif; ?>


		</ul>
	</div>

<script>
function shouquan(url){
    location.href = url;

}
</script>
</body>
</html>